package com.dunshan.prometh.config;

import io.micrometer.core.instrument.MeterRegistry;
import org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryCustomizer;
import org.springframework.context.annotation.Bean;

/**
 * @author .dunshan
 * @program: dunshan-pef
 * @description: prometheus 配置
 * @date 2021-09-25 10:47:27
 */
//@Configuration
public class PrometheusConfig {
    /**
     * 上报application 到 Prometheus
     */
//    @Bean
//    MeterRegistryCustomizer<MeterRegistry> meterRegistryCustomizer() {
//        return registry -> registry.config().commonTags("tag1", "a", "tag2", "b");
//    }

}
